//
//  JLoadTV.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UITableViewCell+JpressBlock.h"
#import "UIScrollView+EmptyDataSet.h"
#import "JRefreshVCControl.h"

@interface JLoadTV : UITableView<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource,DZNEmptyDataSetDelegate>

//数据源
@property (nonatomic , strong) NSMutableArray *dataArray;

//cell的复用
@property (nonatomic , copy) NSString *cellIdentiy;
//xib还是纯class 需要加载前设置
@property (nonatomic, assign) BOOL isCellClass;

//block 回调
@property (nonatomic , copy) BlockValue block;

//是否显示空数据
@property (nonatomic , strong) EmptyData *emptydata;

//单个删除按钮
@property (nonatomic , copy) NSString *deleteString;

//多个删除按钮
@property (nonatomic , strong) NSMutableArray <NSString *> *sideBtns;

//多个删除按钮背景色
@property (nonatomic , strong) NSMutableArray <UIColor *> *sideBtnBgColor;

#pragma mark 直接加载数据
- (void)loadWithIdentity:(NSString *)cellName cellHeight:(float)cellHeight andBlock:(BlockValue)block;

#pragma mark 有空显示的tableview
- (void)loadWithIdentity:(NSString *)cellName cellHeight:(float)cellHeight andEmptyData:(EmptyData *)emptydata andBlock:(BlockValue)block;

@end
